package com.tie.jun.ge.xxljob.service.impl;

import com.tie.jun.ge.xxljob.domain.TaskManagerDO;
import com.tie.jun.ge.xxljob.repostory.TaskManagerRepository;
import com.tie.jun.ge.xxljob.service.TaskManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: springboot
 * @description: 任务管理服务层
 * @author: getiejun
 * @create: 2025-10-27 23:16
 **/
@Service
public class TaskManagerServiceImpl implements TaskManagerService {

    @Autowired
    private TaskManagerRepository taskManagerRepository;

    @Override
    public void save(TaskManagerDO taskManagerDO) {
        taskManagerRepository.save(taskManagerDO);
    }

    @Override
    public List<TaskManagerDO> listAll() {
        return taskManagerRepository.listAll();
    }
}
